{% extends "base.html" %}
{% block javascript %}
    <script>
        $(document).ready(function(){
            $("#wandou").click(function(){
                var uid = $("#uid").val();
                var sums = $("#sums").val();
                if (uid == ''){
                    sweetAlert("", "uid不能为空,请输入uid", "info");
                    return false;
                }
                if (sums == ''){
                    sweetAlert("", "豌豆数不能为空,请重新输入", "info");
                    return false;
                }
            });
            $("#i_wandou").click(function(){
                var uid = $("#i_uid").val();
                var sums = $("#i_sums").val();
                if (uid == ''){
                    sweetAlert("", "uid不能为空,请输入uid", "info");
                    return false;
                }
                if (sums == ''){
                    sweetAlert("", "豌豆数不能为空,请重新输入", "info");
                    return false;
                }
            });
             $("#search_en").click(function(){
                var  en= $("#en").val();
                if (en == ''){
                    sweetAlert("", "邮箱/昵称不能为空,请重新输入", "info");
                    return false;
                }
            });
            $("#vbadge").click(function(){
                var star_uid = $("#star_uid").val();
                if (star_uid == ''){
                    sweetAlert("", "内容不能为空,请重新输入", "info");
                    return false;
                }
            });
            $("#change_payment").click(function(){
                var star_uid = $("#payment").val();
                if (star_uid == ''){
                    sweetAlert("", "用户uid不能为空,请重新输入", "info");
                    return false;
                }
            });
        });
    </script>
{% endblock %}
{% block main %}
<div id="page-wrapper" style="min-height: 700px;">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="../parameters">国内版本</a>
                            </li>
                            <li>
                                <a href="../parameters_i">国际版本</a>
                            </li>
                        </ul>
                        <div class="page-header">
                            <h3>
                                APP Parameters(国内版测试环境)
                            </h3>
                        </div>
                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="../index">Dashboard</a>
                            </li>
                            <li>
                                <i class="fa fa-briefcase"></i>  <a>Test Tools</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-delicious"></i> APP Parameters
                            </li>
                        </ol>
                    </div>
                </div>
                <div class="tab-content">
                    <div class = 'row tab-pane active' id = 'local'>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-drupal"></i>&nbsp;UID查询</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="en" id = 'en' class="input-sm" placeholder="请输入邮箱/昵称" value="" style="width:80%">
                                        <select name="select_en" class="form-control" style="width: 80%;margin-top: 10px;margin-left: 10%;">
                                            <option value="email">邮箱</option>
                                            <option value="name">昵称</option>
                                        </select>
    {#                                    <div style="display: inline-block">#}
                                        <p style="margin-top: 15px;text-align: left;margin-left: 10%;">查询结果:&nbsp;&nbsp;{{ result_email }}</p>
    {#                                        <p>vbadge:{{ result_email }}</p>#}
    {#                                    </div>#}
                                        <input type="submit" id='search_en' class='btn btn-info' value='查询' style="width: 80%;margin-top: 1%;">
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-edit"></i>&nbsp;支付密码修改</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="payment" id='payment' class="input-sm" placeholder="请输入uid" style="width:80%;margin-top: 15px;">
                                        <p style="margin-top: 25px;text-align: left;margin-left: 10%;">默认密码:&nbsp;&nbsp; 111111</p>
                                        <input type="submit" name = "change_payment" id="change_payment" class='btn btn-info' value='修改' style="width: 80%;margin-top: 4%;margin-bottom: 10px;">
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-header"></i>&nbsp;头像认证图标修改</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="star_uid" id = 'star_uid' class="input-sm" placeholder="请输入用户UID" style="width:80%;margin-top: 15px;">
                                        <select name="sel_vbadge" class="form-control" style="width: 80%;margin-top: 15px;margin-left: 10%;">
                                            <option value="6">明星号</option>
                                            <option value="4">黄V</option>
                                            <option value="3">紫V</option>
                                            <option value="2">蓝V</option>
                                            <option value="5">防艾机构</option>
                                        </select>
    {#                                    <p style="margin-top: 25px;text-align: left;margin-left: 45px;">查询结果:&nbsp;&nbsp;{{ result_email }}</p>#}
                                        <input type="submit" id='vbadge' class='btn btn-info' value='修改' style="width: 80%;margin-top: 20px;margin-bottom: 10px;">
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-drupal"></i>&nbsp;豌豆修改</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="uid" id = uid class="input-sm" placeholder="请输入uid" value="" style="width:80%">
                                        <select name="select" class="form-control" style="width: 80%;margin-top: 10px;margin-left: 10%;">
                                            <option value="android">Andriod</option>
                                            <option value="ios">IOS</option>
                                        </select>
                                        <input name="sums" id=sums class="input-sm" placeholder="请输入豌豆数" style="width:80%;margin-top: 10px;">
                                        <input type="submit" id="wandou" class='btn btn-info' value='修改' style="width: 80%;margin-top: 10px;">
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-search"></i>&nbsp;验证码查询</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="identity" id='identity' class="input-sm" placeholder="请输入账号(电话格式+86-111111)" style="width:80%;margin-top: 15px;">
                                        <p style="margin-top: 25px;text-align: left;margin-left: 10%;">查询结果:&nbsp;&nbsp;{{ authcode }}</p>
                                        <input type="submit" name = "search_identity" id="search_identity" class='btn btn-info' value='查询' style="width: 80%;margin-top: 15px;margin-bottom: 10px;">
                                    </form>
                                {% if identity != '' %}
                                    <div class="table-responsive" style="width: 80%;margin-left: 10%;">
                                        <table class="table table-bordered table-hover table-striped" style="height:10px;">
                                            <thead>
                                                <tr class="success">
                                                    <th class="col-lg-2" style="text-align: center">类型</th>
                                                    <th class="col-lg-4" style="text-align: center">账号</th>
                                                    <th class="col-lg-2" style="text-align: center">验证码</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            {% for list in identity %}
                                                <tr class="info">
                                                    <td style="text-align: center">{{ list.acount }}</td>
                                                    <td style="text-align: center">{{ list.ident }}</td>
                                                    <td style="text-align: center">{{ list.authc }}</td>
                                                </tr>
                                            {% endfor %}
                                            </tbody>
                                        </table>
                                    </div>
                                {% endif %}
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-6">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title"><i class="fa fa-edit"></i>&nbsp;安全邮箱验证码查询</h3>
                                </div>
                                <div class="panel-body" style="text-align: center;">
                                    <form method= 'get'>
                                        <input name="safe_uid" id='safe_uid' class="input-sm" placeholder="请输入uid/token(找回密码)" style="width:80%;margin-top: 5px;">
                                        <select name="select_safe" class="form-control" style="width: 80%;margin-top: 10px;margin-left: 10%;">
                                            <option value= 0>安全邮箱绑定</option>
                                            <option value= 1>更改安全邮箱</option>
{#                                            <option value= 2>通过安全邮箱找回密码</option>#}
                                        </select>
                                        <p style="margin-top: 10px;text-align: left;margin-left: 10%;">查询结果:&nbsp;&nbsp; {{ safe_uid_result }}</p>
                                        <input type="submit" name = "safe_email" id="safe_email" class='btn btn-info' value='查询' style="width: 80%;margin-top: 1.5%">
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="../static/js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="../static/js/bootstrap.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="../static/js/plugins/morris/raphael.min.js"></script>
    <script src="../static/js/plugins/morris/morris.min.js"></script>
    <script src="../static/js/plugins/morris/morris-data.js"></script>
    <script src="../static/js/sweet-alert.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../static/css/sweet-alert.css">

    <!-- Flot Charts JavaScript -->
    <!--[if lte IE 8]><script src="js/excanvas.min.js"></script><![endif]-->
    <script src="../static/js/plugins/flot/jquery.flot.js"></script>
    <script src="../static/js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="../static/js/plugins/flot/jquery.flot.resize.js"></script>
    <script src="../static/js/plugins/flot/jquery.flot.pie.js"></script>
    <script src="../static/js/plugins/flot/flot-data.js"></script>
{% endblock %}
</body>

</html>
